package com.glr.service;

import com.spring.*;

/**
 * @author GLoRy
 * @date 2021/5/22 15:39
 */
@ReComponent("userService")
@ReScope("prototype")
public class UserServiceImpl implements ReInitializingBean, UserService {

    @ReAutowired
    private OrderService orderService;

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化");
    }

    @Override
    public void test() {
        System.out.println(orderService);
        System.out.println(name);
    }
}
